namespace JHT.EFMigrationTest.ClassLibrary1.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class AddBookEntity : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "dbo.Books",
                c => new
                    {
                        BookNo = c.String(nullable: false, maxLength: 30, unicode: false),
                        Edition = c.Int(nullable: false),
                        BookName = c.String(nullable: false, maxLength: 50, unicode: false),
                        BookAuthor = c.String(nullable: false, maxLength: 50, unicode: false),
                    })
                .PrimaryKey(t => new { t.BookNo, t.Edition });
            
        }
        
        public override void Down()
        {
            DropTable("dbo.Books");
        }
    }
}
